package com.game79.musou.webapp.action;

import com.game79.musou.model.Player;

public class PlayerAction extends ActionBase {
	private boolean withMainArmy = false;
	private int  customType = 0;
	private boolean withEffects = false;
	private boolean withFateStarList = false;
	private boolean withManorResourceList = false;
	private String idCard; 
	private boolean withHeroes = false;
	private int recoverActionPoint = 0;
	private boolean withAvailableMissionSetConfigs = false;
	private boolean personalInfo = false;
	private boolean withHeroSymbol = false;
	private boolean withRelationList = false;
	private boolean withItems = false;
	private boolean withResField = false;
	private int assistantId = 0;
	private int credit = 0;
	private boolean withManorSoldierList = true;
	private boolean spl = false;
	private int sex = 0;
	private int countryCode = 0;
	private int relationship = -1;
	private boolean withArtifact = false;
	private boolean withLevelupCampaign = false;
	private boolean withTaskList = false;
	private int levelDistance = 0;
	private boolean withTreasureMapList = false;
	private int index = 0;
	private Player player;
	private String formation;
	
	public PlayerAction saveFormation(String formation){
		super.setId(-1);
		this.withMainArmy = true;
		this.formation = formation;
		this.withItems = true;
		this.withManorSoldierList = false;
		return this;
	}
	
	public PlayerAction saveDefaultFormationSetting(int index) {
		this.index = index;
		return this;
	}
	
	public PlayerAction selectCountry(int countryCode){
		this.countryCode = countryCode;
		return this;
	}
	
	public PlayerAction setUpAssistantId(int id){
		this.assistantId = id;
		return this;
	}
	
	public PlayerAction viewPlayer(){
		this.player = new Player();
		this.player.setName("nag");
		return this;
	}
	
	public PlayerAction levelup(){
		return this;
	}
	
	
	public boolean isWithMainArmy() {
		return withMainArmy;
	}
	public void setWithMainArmy(boolean withMainArmy) {
		this.withMainArmy = withMainArmy;
	}
	public int getCustomType() {
		return customType;
	}
	public void setCustomType(int customType) {
		this.customType = customType;
	}
	public boolean isWithEffects() {
		return withEffects;
	}
	public void setWithEffects(boolean withEffects) {
		this.withEffects = withEffects;
	}
	public boolean isWithFateStarList() {
		return withFateStarList;
	}
	public void setWithFateStarList(boolean withFateStarList) {
		this.withFateStarList = withFateStarList;
	}
	public boolean isWithManorResourceList() {
		return withManorResourceList;
	}
	public void setWithManorResourceList(boolean withManorResourceList) {
		this.withManorResourceList = withManorResourceList;
	}
	public String getIdCard() {
		return idCard;
	}
	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}
	public boolean isWithHeroes() {
		return withHeroes;
	}
	public void setWithHeroes(boolean withHeroes) {
		this.withHeroes = withHeroes;
	}
	public int getRecoverActionPoint() {
		return recoverActionPoint;
	}
	public void setRecoverActionPoint(int recoverActionPoint) {
		this.recoverActionPoint = recoverActionPoint;
	}
	public boolean isWithAvailableMissionSetConfigs() {
		return withAvailableMissionSetConfigs;
	}
	public void setWithAvailableMissionSetConfigs(
			boolean withAvailableMissionSetConfigs) {
		this.withAvailableMissionSetConfigs = withAvailableMissionSetConfigs;
	}
	public boolean isPersonalInfo() {
		return personalInfo;
	}
	public void setPersonalInfo(boolean personalInfo) {
		this.personalInfo = personalInfo;
	}
	public boolean isWithHeroSymbol() {
		return withHeroSymbol;
	}
	public void setWithHeroSymbol(boolean withHeroSymbol) {
		this.withHeroSymbol = withHeroSymbol;
	}
	public boolean isWithRelationList() {
		return withRelationList;
	}
	public void setWithRelationList(boolean withRelationList) {
		this.withRelationList = withRelationList;
	}
	public boolean isWithItems() {
		return withItems;
	}
	public void setWithItems(boolean withItems) {
		this.withItems = withItems;
	}
	public boolean isWithResField() {
		return withResField;
	}
	public void setWithResField(boolean withResField) {
		this.withResField = withResField;
	}
	public int getAssistantId() {
		return assistantId;
	}
	public void setAssistantId(int assistantId) {
		this.assistantId = assistantId;
	}
	public int getCredit() {
		return credit;
	}
	public void setCredit(int credit) {
		this.credit = credit;
	}
	public boolean isWithManorSoldierList() {
		return withManorSoldierList;
	}
	public void setWithManorSoldierList(boolean withManorSoldierList) {
		this.withManorSoldierList = withManorSoldierList;
	}
	public boolean isSpl() {
		return spl;
	}
	public void setSpl(boolean spl) {
		this.spl = spl;
	}
	public int getSex() {
		return sex;
	}
	public void setSex(int sex) {
		this.sex = sex;
	}
	public int getCountryCode() {
		return countryCode;
	}
	public void setCountryCode(int countryCode) {
		this.countryCode = countryCode;
	}
	public int getRelationship() {
		return relationship;
	}
	public void setRelationship(int relationship) {
		this.relationship = relationship;
	}
	public boolean isWithArtifact() {
		return withArtifact;
	}
	public void setWithArtifact(boolean withArtifact) {
		this.withArtifact = withArtifact;
	}
	public boolean isWithLevelupCampaign() {
		return withLevelupCampaign;
	}
	public void setWithLevelupCampaign(boolean withLevelupCampaign) {
		this.withLevelupCampaign = withLevelupCampaign;
	}
	public boolean isWithTaskList() {
		return withTaskList;
	}
	public void setWithTaskList(boolean withTaskList) {
		this.withTaskList = withTaskList;
	}
	public int getLevelDistance() {
		return levelDistance;
	}
	public void setLevelDistance(int levelDistance) {
		this.levelDistance = levelDistance;
	}
	public boolean isWithTreasureMapList() {
		return withTreasureMapList;
	}
	public void setWithTreasureMapList(boolean withTreasureMapList) {
		this.withTreasureMapList = withTreasureMapList;
	}
	public int getIndex() {
		return index;
	}
	public void setIndex(int index) {
		this.index = index;
	}
	public boolean isWithMissions() {
		return withMissions;
	}
	public void setWithMissions(boolean withMissions) {
		this.withMissions = withMissions;
	}
	public Player getPlayer() {
		return player;
	}
	public void setPlayer(Player player) {
		this.player = player;
	}
	public String getFormation() {
		return formation;
	}

	public void setFormation(String formation) {
		this.formation = formation;
	}
	private boolean withMissions = false;
	 // methodName (String): viewPlayer
	 // serviceName (String): playerAction
}
